﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Libium.Core
{
    public class DisposeAction :Disposable
    {
        private Action _action;

        public DisposeAction(Action action)
        {
            _action = action;
        }

        protected override void DoDispose()
        {
            _action();
        }
    }
}
